Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function TryPopRange ( _
items As T(), _
startIndex As Integer, _
count As Integer _
) As Integer |
C# |
---|
public int TryPopRange(
T[] items,
int startIndex,
int count
) |
Parameters
- items
- Type: array<
T
>[]()[]
The Array to which objects popped from the top of the ConcurrentStack<(Of <(T>)>) will be added.
- startIndex
- Type: System..::.Int32
The zero-based offset in items at which to begin
inserting elements from the top of the ConcurrentStack<(Of <(T>)>).
- count
- Type: System..::.Int32
The number of elements to be popped from top of the ConcurrentStack<(Of <(T>)>) and inserted into items.
Remarks
Exceptions
Exception | Condition |
---|
System..::.ArgumentNullException | items is a null reference
(Nothing in Visual Basic). |
System..::.ArgumentOutOfRangeException | startIndex or count is negative. Or startIndex is greater than or equal to the length
of items. |
System..::.ArgumentException | startIndex + count is
greater than the length of items. |
See Also